home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: yama.mcc.ac.uk!liv!news
- From: nickc@liv.ac.uk (Spider plant breeding program)
- Subject: classes nested within template classes
- Message-ID: <NICKC.96Mar3183317@uxe.liv.ac.uk>
- Sender: news@liverpool.ac.uk (News System)
- Nntp-Posting-Host: uxe.liv.ac.uk
- Organization: M-6 M-4 M-x hanoi
- Date: Sun, 3 Mar 1996 18:33:17 GMT
-
- (Yes, the problem was found with a linked list!)
- The SUN C++ compiler I'm using refuses to allow non-inline functions in classes
- nested with template classes. It generates errors of the form:
-
- "linkedlist.h", line 30: Error: Member functions in a class local to a template
- must be defined in the class.
-
- Should I be able to have non-inline functions within classes local to a template
-
- (is the compiler again demonstrating it's usual deficiencies with nested
- classes)
-
- or does the standard preclude them?
-
- Thanks for any help, sorry if this is in the wrong C++ group
-
- Nicholas Clark
- --
- C:\> ECHO f 0000:0000 ffff 66 | DEBUG
-